import java.util.Scanner;

public class Multi_Table {
    public static void main(String[] args) {
        int n = 0;
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入乘法表的层数：");
        n  = scanner.nextInt();
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= i ; j++) {
                System.out.printf("%d * %d = %d  ",i,j,i*j);
            }
            System.out.println();
        }
    }
}
